/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 */

import React, {useEffect, useRef, forwardRef, useState} from 'react';
import {} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import BottomTabs from 'components/BottomTabs';
import {PaperProvider} from 'react-native-paper';

const Stack = createNativeStackNavigator();

const App = () => {
  return (
    <PaperProvider>
      <NavigationContainer>
        <Stack.Navigator
          initialRouteName="tabbar"
          screenOptions={{
            headerShown: false,
          }}>
          <Stack.Screen name="tabbar" component={BottomTabs} />
          <Stack.Screen
            name="select"
            options={{
              headerShown: true,
              title:''
            }}
            getComponent={() =>
              require('views/select/index').default
            }></Stack.Screen>
          <Stack.Screen
            name="createIndex"
            options={{
              headerShown: false,
              title:''
            }}
            getComponent={() =>
              require('views/create/index').default
            }></Stack.Screen>
        </Stack.Navigator>
      </NavigationContainer>
    </PaperProvider>
  );
};

export default App;
